package com.zhou.service;

import com.zhou.dao.TeacherMessageTaskDAO;
import com.zhou.entity.TeacherStudentTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("teacherMessageTaskService")
public class TeacherMessageTaskServiceImpl implements TeacherMessageTaskService {
    @Autowired
    private TeacherMessageTaskDAO teacherMessageTaskDAO;

    @Override
    public void addTeacherTask(TeacherStudentTask teacherStudentTask) {
        teacherMessageTaskDAO.addTeacherTask(teacherStudentTask);
    }

    @Override
    public List<TeacherStudentTask> findTask(Integer teacherID) {
        return teacherMessageTaskDAO.findTask(teacherID);
    }

    @Override
    public List<TeacherStudentTask> findTaskByMessageID(Integer MessageID) {
        return teacherMessageTaskDAO.findTaskByMessageID(MessageID);
    }

    @Override
    public List<TeacherStudentTask> findTaskByStudentID(Long StudentID) {
        return teacherMessageTaskDAO.findTaskByStudentID(StudentID);
    }

    @Override
    public void DeleteMessage(Integer MessageID) {
        teacherMessageTaskDAO.DeleteMessage(MessageID);
    }

    @Override
    public void DeleteRelationship(Integer MessageID) {
        teacherMessageTaskDAO.DeleteRelationship(MessageID);
    }


}
